package com.gok.einvoice.web.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDate;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
@TableName("invoice")
public class InvoiceEntity {
    @ApiModelProperty("id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("用户id")
    private Integer userId;

    @ApiModelProperty("开始时间")
    private LocalDate startTime;

    @ApiModelProperty("结束时间")
    private LocalDate endTime;

    @ApiModelProperty("出发地")
    private String startPlace;

    @ApiModelProperty("到达地")
    private String endPlace;

    @ApiModelProperty("酒店名称")
    private String hotelName;

    @ApiModelProperty("入住天数")
    private Integer days;

    @ApiModelProperty("单价")
    private String unitPrice;

    @ApiModelProperty("发票金额")
    private String invoiceValue;

    @ApiModelProperty("开票日期")
    private LocalDate invoicingDate;

    @ApiModelProperty("发票代码")
    private String invoiceCode;

    @ApiModelProperty("发票号码")
    private String invoiceNumber;

    @ApiModelProperty("税率")
    private String taxRate;

    @ApiModelProperty("销售方名称")
    private String sellerName;

    @ApiModelProperty("销售方电话")
    private String sellerPhone;

    @ApiModelProperty("备注")
    private String remark;
}
